package com.neugh.service.impl;

import com.neugh.entity.User;
import com.neugh.mapper.UserMapper;
import com.neugh.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public boolean addUser(String userPhone, String userPassword) {
        return this.baseMapper.addUser(userPhone,userPassword);
    }

    @Override
    public int selectUser(Integer userId) {
        return this.baseMapper.selectUser(userId);
    }

}
